/**
 * 
 */
package trigger;

/**
 * @author Philip
 *
 */
public class ExactStringFlag extends TriggerFlagger {

	public ExactStringFlag(Trigger flaggedTrigger) {
		super(flaggedTrigger);
	}
	
	public boolean triggers(String message) {
		message = message.trim();
		return trigger().equalsIgnoreCase(message) && flaggedTrigger.triggers(message);
	}
}
